﻿#ifndef _STREAMINFO_
#define _STREAMINFO_

extern "C" 
{
#include "avformat.h"
#include "avcodec.h"
#include "swscale.h"
}

#pragma comment(lib, "avformat-52.lib")
#pragma comment(lib, "avcodec-52.lib")
#pragma comment(lib, "avutil-49.lib")

//#pragma comment(lib, "avdevice-52.lib")
#pragma comment(lib, "swscale-0.lib")


struct  sCODEC_INFO
{
	unsigned int	codec;
	char			codecname[64];
};

const sCODEC_INFO	codec_info[] =
{
	CODEC_ID_MPEG1VIDEO,		"MPEG1VIDEO",
	CODEC_ID_MPEG2VIDEO,		"MPEG2VIDEO",
	CODEC_ID_MPEG2VIDEO_XVMC,	"MPEG2VIDEO_XVMC",
	CODEC_ID_H261,				"H261",
	CODEC_ID_H263,				"H263",
	CODEC_ID_RV10,				"RV10",
	CODEC_ID_RV20,				"RV20",
	CODEC_ID_MJPEG,				"MJPEG",
	CODEC_ID_MJPEGB,			"MJPEGB",
	CODEC_ID_LJPEG,				"LJPEG",
	CODEC_ID_SP5X,				"SP5X",
	CODEC_ID_JPEGLS,			"JPEGLS",
	CODEC_ID_MPEG4,				"MPEG4",
	CODEC_ID_RAWVIDEO,			"RAWVIDEO",
	CODEC_ID_MSMPEG4V1,				"MSMPEG4V1",
	CODEC_ID_MSMPEG4V2,				"",
	CODEC_ID_MSMPEG4V3,				"",
	CODEC_ID_WMV1,				"",
	CODEC_ID_WMV2,				"",
	CODEC_ID_H263P,				"",
	CODEC_ID_H263I,				"",
	CODEC_ID_FLV1,				"",
	CODEC_ID_SVQ1,				"",
	CODEC_ID_SVQ3,				"",
	CODEC_ID_DVVIDEO,				"",
	CODEC_ID_HUFFYUV,				"",
	CODEC_ID_CYUV,				"",
	CODEC_ID_H264,				"H264",
	CODEC_ID_INDEO3,				"",
	CODEC_ID_VP3,				"",
	CODEC_ID_THEORA,				"",
	CODEC_ID_ASV1,				"",
	CODEC_ID_ASV2,				"",
	CODEC_ID_FFV1,				"",
	CODEC_ID_4XM,				"",
	CODEC_ID_VCR1,				"",
	CODEC_ID_CLJR,				"",
	CODEC_ID_MDEC,				"",
	CODEC_ID_ROQ,				"",
	CODEC_ID_INTERPLAY_VIDEO,				"",
	CODEC_ID_XAN_WC3,				"",
	CODEC_ID_XAN_WC4,				"",
	CODEC_ID_RPZA,				"",
	CODEC_ID_CINEPAK,				"",
	CODEC_ID_WS_VQA,				"",
	CODEC_ID_MSRLE,				"",
	CODEC_ID_MSVIDEO1,				"",
	CODEC_ID_IDCIN,				"",
	CODEC_ID_8BPS,				"",
	CODEC_ID_SMC,				"",
	CODEC_ID_FLIC,				"",
	CODEC_ID_TRUEMOTION1,				"",
	CODEC_ID_VMDVIDEO,				"",
	CODEC_ID_MSZH,				"",
	CODEC_ID_ZLIB,				"",
	CODEC_ID_QTRLE,				"",
	CODEC_ID_SNOW,				"",
	CODEC_ID_TSCC,				"",
	CODEC_ID_ULTI,				"",
	CODEC_ID_QDRAW,				"",
	CODEC_ID_VIXL,				"",
	CODEC_ID_QPEG,				"",
	CODEC_ID_XVID,				"",
	CODEC_ID_PNG,				"",
	CODEC_ID_PPM,				"",
	CODEC_ID_PBM,				"",
	CODEC_ID_PGM,				"",
	CODEC_ID_PGMYUV,				"",
	CODEC_ID_PAM,				"",
	CODEC_ID_FFVHUFF,				"",
	CODEC_ID_RV30,				"",
	CODEC_ID_RV40,				"",
	CODEC_ID_VC1,				"",
	CODEC_ID_WMV3,				"",
	CODEC_ID_LOCO,				"",
	CODEC_ID_WNV1,				"",
	CODEC_ID_AASC,				"",
	CODEC_ID_INDEO2,				"",
	CODEC_ID_FRAPS,				"",
	CODEC_ID_TRUEMOTION2,				"",
	CODEC_ID_BMP,				"",
	CODEC_ID_CSCD,				"",
	CODEC_ID_MMVIDEO,				"",
	CODEC_ID_ZMBV,				"",
	CODEC_ID_AVS,				"",
	CODEC_ID_SMACKVIDEO,				"",
	CODEC_ID_NUV,				"",
	CODEC_ID_KMVC,				"",
	CODEC_ID_FLASHSV,				"",
	CODEC_ID_CAVS,				"",
	CODEC_ID_JPEG2000,				"",
	CODEC_ID_VMNC,				"",
	CODEC_ID_VP5,				"",
	CODEC_ID_VP6,				"",
	CODEC_ID_VP6F,				"",
	CODEC_ID_TARGA,				"",
	CODEC_ID_DSICINVIDEO,				"",
	CODEC_ID_TIERTEXSEQVIDEO,				"",
	CODEC_ID_TIFF,				"",
	CODEC_ID_GIF,				"",
	CODEC_ID_FFH264,				"",
	CODEC_ID_DXA,				"",
	CODEC_ID_DNXHD,				"",
	CODEC_ID_THP,				"",
	CODEC_ID_SGI,				"",
	CODEC_ID_C93,				"",
	CODEC_ID_BETHSOFTVID,				"",
	CODEC_ID_PTX,				"",
	CODEC_ID_TXD,				"",
	CODEC_ID_VP6A,				"",
	CODEC_ID_AMV,				"",
	CODEC_ID_VB,				"",
	CODEC_ID_PCX,				"",
	CODEC_ID_SUNRAST,				"",
	CODEC_ID_INDEO4,				"",
	CODEC_ID_INDEO5,				"",
	CODEC_ID_MIMIC,				"",
	CODEC_ID_RL2,				"",
	CODEC_ID_8SVX_EXP,				"",
	CODEC_ID_8SVX_FIB,				"",
	CODEC_ID_ESCAPE124,				"",
	CODEC_ID_DIRAC,				"",
	CODEC_ID_BFI,				"",
	CODEC_ID_CMV,				"",
	CODEC_ID_MOTIONPIXELS,				"",
	CODEC_ID_TGV,				"",
	CODEC_ID_TGQ,				"",

	CODEC_ID_H264_VDPAU,				"",

	CODEC_ID_PCM_S16LE,				"",
	CODEC_ID_PCM_S16BE,				"",
	CODEC_ID_PCM_U16LE,				"",
	CODEC_ID_PCM_U16BE,				"",
	CODEC_ID_PCM_S8,				"",
	CODEC_ID_PCM_U8,				"",
	CODEC_ID_PCM_MULAW,				"",
	CODEC_ID_PCM_ALAW,				"",
	CODEC_ID_PCM_S32LE,				"",
	CODEC_ID_PCM_S32BE,				"",
	CODEC_ID_PCM_U32LE,				"",
	CODEC_ID_PCM_U32BE,				"",
	CODEC_ID_PCM_S24LE,				"",
	CODEC_ID_PCM_S24BE,				"",
	CODEC_ID_PCM_U24LE,				"",
	CODEC_ID_PCM_U24BE,				"",
	CODEC_ID_PCM_S24DAUD,				"",
	CODEC_ID_PCM_ZORK,				"",
	CODEC_ID_PCM_S16LE_PLANAR,				"",
	CODEC_ID_PCM_DVD,				"",
	CODEC_ID_PCM_F32BE,				"",
	CODEC_ID_PCM_F32LE,				"",
	CODEC_ID_PCM_F64BE,				"",
	CODEC_ID_PCM_F64LE,				"",

	/* various ADPCM codecs */
	CODEC_ID_ADPCM_IMA_QT,				"",
	CODEC_ID_ADPCM_IMA_WAV,				"",
	CODEC_ID_ADPCM_IMA_DK3,				"",
	CODEC_ID_ADPCM_IMA_DK4,				"",
	CODEC_ID_ADPCM_IMA_WS,				"",
	CODEC_ID_ADPCM_IMA_SMJPEG,				"",
	CODEC_ID_ADPCM_MS,				"",
	CODEC_ID_ADPCM_4XM,				"",
	CODEC_ID_ADPCM_XA,				"",
	CODEC_ID_ADPCM_ADX,				"",
	CODEC_ID_ADPCM_EA,				"",
	CODEC_ID_ADPCM_G726,				"",
	CODEC_ID_ADPCM_CT,				"",
	CODEC_ID_ADPCM_SWF,				"",
	CODEC_ID_ADPCM_YAMAHA,				"",
	CODEC_ID_ADPCM_SBPRO_4,				"",
	CODEC_ID_ADPCM_SBPRO_3,				"",
	CODEC_ID_ADPCM_SBPRO_2,				"",
	CODEC_ID_ADPCM_THP,				"",
	CODEC_ID_ADPCM_IMA_AMV,				"",
	CODEC_ID_ADPCM_EA_R1,				"",
	CODEC_ID_ADPCM_EA_R3,				"",
	CODEC_ID_ADPCM_EA_R2,				"",
	CODEC_ID_ADPCM_IMA_EA_SEAD,				"",
	CODEC_ID_ADPCM_IMA_EA_EACS,				"",
	CODEC_ID_ADPCM_EA_XAS,				"",
	CODEC_ID_ADPCM_EA_MAXIS_XA,				"",

	/* AMR */
	CODEC_ID_AMR_NB,				"",
	CODEC_ID_AMR_WB,				"",

	/* RealAudio codecs*/
	CODEC_ID_RA_144,				"",
	CODEC_ID_RA_288,				"",

	/* various DPCM codecs */
	CODEC_ID_ROQ_DPCM,				"",
	CODEC_ID_INTERPLAY_DPCM,				"",
	CODEC_ID_XAN_DPCM,				"",
	CODEC_ID_SOL_DPCM,				"",

	/* audio codecs */
	CODEC_ID_MP2,				"MP2",
	CODEC_ID_MP3,				"MP3",
	CODEC_ID_AAC,				"AAC",
	CODEC_ID_AC3,				"AC3",
	CODEC_ID_DTS,				"DTS",
	CODEC_ID_VORBIS,			"VORBIS",
	CODEC_ID_DVAUDIO,			"DVAUDIO",
	CODEC_ID_WMAV1,				"WMAV1",
	CODEC_ID_WMAV2,				"WMAV2",
	CODEC_ID_MACE3,				"MACE3",
	CODEC_ID_MACE6,				"MACE6",
	CODEC_ID_VMDAUDIO,			"VMDAUDIO",
	CODEC_ID_SONIC,				"SONIC",
	CODEC_ID_SONIC_LS,			"SONIC_LS",
	CODEC_ID_FLAC,				"FLAC",
	CODEC_ID_MP3ADU,			"MP3ADU",
	CODEC_ID_MP3ON4,				"",
	CODEC_ID_SHORTEN,				"",
	CODEC_ID_ALAC,				"",
	CODEC_ID_WESTWOOD_SND1,				"",
	CODEC_ID_GSM,				"",
	CODEC_ID_QDM2,				"",
	CODEC_ID_COOK,				"",
	CODEC_ID_TRUESPEECH,				"",
	CODEC_ID_TTA,				"",
	CODEC_ID_SMACKAUDIO,				"",
	CODEC_ID_QCELP,				"",
	CODEC_ID_WAVPACK,				"",
	CODEC_ID_DSICINAUDIO,				"",
	CODEC_ID_IMC,				"",
	CODEC_ID_MUSEPACK7,				"",
	CODEC_ID_MLP,				"",
	CODEC_ID_GSM_MS,				"",
	CODEC_ID_ATRAC3,				"",
	CODEC_ID_VOXWARE,				"",
	CODEC_ID_APE,				"",
	CODEC_ID_NELLYMOSER,				"",
	CODEC_ID_MUSEPACK8,				"",
	CODEC_ID_SPEEX,				"",
	CODEC_ID_WMAVOICE,				"",
	CODEC_ID_WMAPRO,				"",
	CODEC_ID_WMALOSSLESS,				"",
	CODEC_ID_ATRAC3P,				"",
	CODEC_ID_EAC3,				"",
	CODEC_ID_SIPR,				"",

	/* subtitle codecs */
	CODEC_ID_DVD_SUBTITLE,				"",
	CODEC_ID_DVB_SUBTITLE,				"",
	CODEC_ID_TEXT,				"",
	CODEC_ID_XSUB,				"",
	CODEC_ID_SSA,				"",
	CODEC_ID_MOV_TEXT,				"",

	CODEC_ID_TTF,				"",
	CODEC_ID_PROBE,				"",
	CODEC_ID_MPEG2TS,				"",
	0x0badf00d, ""
};



#endif